<script>
	function del(kd){
		if(confirm("Apakah yakin akan menghapus data?")){
			document.location="group/del/"+kd;
		}
	}
</script>
<table cellpadding="0" cellspacing="0" border="0" class="responsive dynamicTable display table table-bordered" width="100%">
	<thead>
		<tr>
			<th>Kode Group</th>
			<th>Nama Group</th>
			<th width="15%">Proses</th>
		</tr>
	</thead>
	<tbody>
		<?php
			foreach($group as $row){
				echo "<tr>
						<td>".$row->kd_group."</td>
						<td>".$row->nm_group."</td>
						<td>
							<div class='controls center'>
							   <a class='tip' href='group/edit/".$row->kd_group."' oldtitle='Edit Data group' title=''><span class='icon12 icomoon-icon-pencil'></span></a>
							   <a class='tip' href='javascript:del(\"".$row->kd_group."\")' oldtitle='Hapus Data group' title=''><span class='icon12 icomoon-icon-remove'></span></a>
							</div>
						</td>
					</tr>";
			}
		?>
	</tbody>
	<tfoot>
		<tr>
			<th>Kode Group</th>
			<th>Nama Group</th>
		</tr>
	</tfoot>
</table>